package com.iu.eblood.Jms.Listener;


import javax.jms.Message;
import javax.jms.MessageListener;

import org.springframework.stereotype.Component;

import com.iu.eblood.Jms.Messages.SmsMessageJMS;


@Component("smsMesajListenerImpl")
public class SMSMesajListenerImpl implements MessageListener {

	public void onMessage(Message message) {
		
		System.out.println("Received");	
		SmsMessageJMS s=(SmsMessageJMS)message;
		System.out.println(s.getTitle());
	}

}
